package com.zs.toolbox.web2j.system.message.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author shuai.zhang  on 2018/9/22
 * @description
 */
@ApiModel("发送邮件接口")
@Data
public class WtSendEmailRequest {
    @ApiModelProperty(value = "要发送的接受地址", required = true,example = "3163504123@163.com")
    List<String> emails;

    @ApiModelProperty(value = "要发送的标题", required = true,example = "测试标题")
    @NotBlank(message = "标题不能为空")
    String title;

    @ApiModelProperty(value = "要发送的内容", required = true,example = "发送内容")
    @NotBlank(message = "内容不能为空")
    String content;

    @ApiModelProperty(value = "是否同步发送", required = false)
    Boolean isSync = false;


}
